package com.spzx.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spzx.product.domain.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper extends BaseMapper<Product> {

    //查询商品列表
    List<Product> selectProductList(Product product);


    // mybatis plus 多参数要加@Param
    Integer updateStock(@Param("skuId") Long skuId, @Param("skuNum") Integer skuNum);
}
